<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<title>天天好心情^_^</title>
	<%@ include file="layouts/top.jsp"%>
	<script type="text/javascript">
		function formatNowDate() {
			var today = new Date();
			var year = today.getFullYear();
			var month = today.getMonth() + 1;
			var day = today.getDate();
			var hrs = today.getHours();
			var min = today.getMinutes();
			var sec = today.getSeconds();
	
			if (month < 10) {
				month = "0" + month;
			}
			if (day < 10) {
				day = "0" + day;
			}
			if (hrs < 10) {
				hrs = "0" + hrs;
			}
			if (min < 10) {
				min = "0" + min;
			}
			if (sec < 10) {
				sec = "0" + sec;
			}
	
			$("#nowTime").val(year + "年" + month + "月" + day + "日"
					+ "  星期" + "日一二三四五六".charAt(today.getDay()) + "  "
					+ hrs + "时" + min + "分");
			var textLength = $("#nowTime").val().length;
			$("#nowTime").css('width', textLength * 10 + 'px');
		}
		setInterval("formatNowDate()", 1000);

	</script>
</head>
<body>
	<div align="center">
		<table style="width:100%; text-align: center;">
			<tr><td><B>欢迎使用!</B></td></tr>
			<tr><td>现在是     <input type="text" id="nowTime" style="border: 0;" readonly="readonly" /></td></tr>
			<tr><td><B>${mood}</B></td></tr>
		</table>
	</div>
</body>

</html>